package org.dromara.merchants.domain.bo;

import org.dromara.merchants.domain.TaStore;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;

/**
 * 店铺业务对象 ta_store
 *
 * @author xiyin321
 * @date 2024-07-02
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = TaStore.class, reverseConvertGenerate = false)
public class TaStoreBo extends BaseEntity {

    /**
     * 店铺编号
     */
    @NotNull(message = "店铺编号不能为空", groups = { EditGroup.class })
    private Long storeId;

    /**
     * 店铺名
     */
    @NotBlank(message = "店铺名不能为空", groups = { AddGroup.class, EditGroup.class })
    private String storeName;

    /*用户id*/
    private Long userId;

    /*状态*/
    private String status;

    /**
     * 地址(经纬度)
     */
    private String address;

    /**
     * 省
     */
    @NotBlank(message = "省不能为空", groups = { AddGroup.class, EditGroup.class })
    private String province;
    /*
    * 省选项列表
    * */
    private String[] provinceList;

    /**
     * 市
     */
    @NotBlank(message = "市不能为空", groups = { AddGroup.class, EditGroup.class })
    private String city;
    /*
    * 市选项列表
    * */
    private String[] cityList;

    /**
     * 区
     */
    @NotBlank(message = "区不能为空", groups = { AddGroup.class, EditGroup.class })
    private String area;

    /**
     * 街道
     */
    @NotBlank(message = "街道不能为空", groups = { AddGroup.class, EditGroup.class })
    private String street;

    /**
     * 封面url
     */
    private Long cover;

    /**
     * 商家图标url
     */
    private Long logo;

    /**
     * 描述
     */

    private String description;

    /**
     * 商家电话
     */
    @NotBlank(message = "商家电话不能为空", groups = { AddGroup.class, EditGroup.class })
    private String phone;

    /**
     * 评分
     */
    private String score;


}
